import yaml

class Config:
    def __init__(self, path):
        with open(path, 'r') as stream:
            try:
                self.data = yaml.safe_load(stream)
            except yaml.YAMLError as exc:
                print(exc)

    def get(self, key):
        return self.data.get(key)

